projects
/
babl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e62e019
)
babl_space_get_icc: permit passing NULL for return length
author
Øyvind Kolås
<pippin@gimp.org>
Fri, 2 Nov 2018 15:34:58 +0000
(16:34 +0100)
committer
Øyvind Kolås
<pippin@gimp.org>
Sat, 3 Nov 2018 12:46:51 +0000
(13:46 +0100)
babl/babl-icc.c
patch
|
blob
|
history
diff --git
a/babl/babl-icc.c
b/babl/babl-icc.c
index f463e9e190fb2b4444c031eb2ba7b42a7a46a224..1ffe41580e15ebfc781cc55405ffe5dbea9c792b 100644
(file)
--- a/
babl/babl-icc.c
+++ b/
babl/babl-icc.c
@@
-626,7
+626,7
@@
const char *babl_space_get_icc (const Babl *babl, int *length)
"babl profile", NULL, 0,
&babl_noconst->space.icc_length);
}
- *length = babl->space.icc_length;
+
if (length)
*length = babl->space.icc_length;
return babl->space.icc_profile;
}